//
//  UpdateResultShared.m
//  CPU_Utility
//
//  Created by leonardo on 15/10/21.
//  Copyright © 2015年 leonardo. All rights reserved.
//

#import "UpdateResultShared.h"

@implementation UpdateResultShared
- (instancetype)init
{
    @throw [NSException exceptionWithName:@"UpdateResultShared" reason:@"Can't Init in Shared" userInfo:nil];
}
- (instancetype)initPrivate
{
    self = [super init];
    if (self) {
        _NewCPU = [CPUDetailModel new];
        _OldCPU = [CPUDetailModel new];
    }
    return self;
}
+(UpdateResultShared*) Defaultshared{
    static UpdateResultShared * instance  = nil;
    
    static dispatch_once_t token;
    
    dispatch_once(&token, ^{
        if (!instance) {
            instance = [[self alloc] initPrivate];
        }
    });
    return instance;
    
    
}
#pragma 公开方法

-(void)getUpdateResult{
    
}
@end
